const config = {
  // 启动端口
  port: 3333,
  upLoadPort:3334,
  socketPort:3335,
  // 数据库配置
  database: {
    DATABASE: 'medical',
    USERNAME: 'root',
    PASSWORD: '123456',
    PORT: '3306',
    HOST: 'localhost'
  },

  rtmpConfig:{
    rtmp: {
      port: 1935,
      chunk_size: 60000,
      gop_cache: true,
      ping: 30,
      ping_timeout: 60
    },
    http: {
      port: 8000,
      allow_origin: '*'
    }
  },

  security: {
    secretKey: "medical",
    // 过期时间 1小时
    expiresIn: 60*60*60
  },
}

module.exports = config